<template>

    <div class="center">
        <div class="header-wrapper">

            <div class="header-contact">

                <div class="userinfo">
                    <div class="touxiang">
                        <img :src="avatar" alt="">
                    </div>
                    <div class="info">
                        <div>努尔哈赤</div>
                    </div>
                </div>

                <div class="setting">
                    <van-icon name="setting" />
                </div>

            </div>

            <div class="header-use-tools">

                <div class="card">
                    <div class="num">
                        1024
                    </div>
                    <div class="text">
                        收藏夹
                    </div>
                </div>
                <div class="card">
                    <div class="num">
                        101
                    </div>
                    <div class="text">
                        关注店铺
                    </div>
                </div>
                <div class="card">
                    <div class="num">
                        479
                    </div>
                    <div class="text">
                        足迹
                    </div>
                </div>
                <div class="card">
                    <div class="num">
                        21
                    </div>
                    <div class="text">
                        红包卡券
                    </div>
                </div>

            </div>
        </div>

        <div class="tools-card">

            <div class="card-wrapper">

                <div class="box-card pos">
                    <div class="header">
                        <div class="title">
                            我的订单
                        </div>
                        <div class="more">
                            查看全部订单
                        </div>
                    </div>

                </div>

                <div class="box-card mt">
                    <div class="header">
                        <div class="title">
                            我的订单
                        </div>
                        <div class="more">
                            查看全部订单
                        </div>
                    </div>
                </div>

                <div class="box-card">
                    <div class="header">
                        <div class="title">
                            我的订单
                        </div>
                        <div class="more">
                            查看全部订单
                        </div>
                    </div>
                </div>

            </div>

        </div>
    </div>
</template>

<script>
import http from "@/libs/http";
import wx from "weixin-js-sdk";
import avatar from "../../assets/images/avatar.jpeg";
import { Icon } from "vant";
export default {
    name: "Center",
    components: {
        [Icon.name]: Icon
    },
    data() {
        return {
            avatar
        };
    },
    created() {},
    methods: {}
};
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
@import "../../assets/styles/common.scss";
.center {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    

    .header-wrapper {
        color: rgb(255, 255, 255);
        display: flex;
        flex-direction: column;
        background-color: #fd9126;
        padding: px2rem(20) px2rem(30);
        box-sizing: border-box;

        .header-contact {
            display: flex;
            justify-content: space-between;

            .userinfo {
                display: flex;

                .touxiang {
                    display: flex;
                    overflow: hidden;
                    margin-left: px2rem(10);
                    width: px2rem(50);
                    height: px2rem(50);
                    border: px2rem(1) solid rgb(255, 255, 255);
                    border-radius: px2rem(25);
                    background-color: rgba(255, 255, 255, 0);
                    img {
                        width: 100%;
                        height: 100%;
                    }
                }
                .info {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    font-size: px2rem(22);
                    margin-left: 20px;
                }
            }

            .setting {
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: px2rem(22);
            }
        }
        .header-use-tools {
            display: flex;
            align-items: center;
            margin-top: px2rem(20);
            margin-bottom: px2rem(40);

            .card {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                flex: 1;

                .num {
                    justify-content: center;
                    align-items: center;
                }
                .text {
                    justify-content: center;
                    align-items: center;
                }
            }
        }
    }

    .tools-card {
        padding: px2rem(20) px2rem(20);
        .card-wrapper {
            position: relative;
            display: flex;
            flex-direction: column;
            width: 100%;
            box-sizing: border-box;

            .box-card {
                box-sizing: border-box;
                background: #ffffff;
                width: 100%;
                height: px2rem(160);
                display: flex;
                border-radius: px2rem(12);
                margin-bottom: px2rem(20);
                display: flex;
                flex-direction: column;

                .header {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    border-bottom: px2rem(1) solid rgb(238, 238, 231);
                    height: px2rem(38);
                    width: 100%;
                    padding: 0 px2rem(20);

                    .title {
                        text-overflow: ellipsis;
                        overflow: hidden;
                        white-space: nowrap;
                        display: flex;
                        font-size: px2rem(16);
                    }
                    .more {
                        display: flex;
                        overflow: hidden;
                        font-size: px2rem(12);
                        color: rgb(153, 153, 153);
                        justify-content: flex-start;
                        align-items: center;
                    }
                }
            }
            .mt {
                margin-top: px2rem(110);
            }

            .pos {
                position: absolute;
                top: px2rem(-60);
                left: 0;
            }
        }
    }
}
</style>